package org.jeecg.modules.demo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: yx_system_user_level
 * @Author: jeecg-boot
 * @Date:   2023-10-24
 * @Version: V1.0
 */
@Data
@TableName("yx_system_user_level")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="会员等级表对象", description="会员等级表")
public class YxSystemUserLevel implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**商户id*/
	@Excel(name = "商户id", width = 15)
    @ApiModelProperty(value = "商户id")
    private Integer merId;
	/**会员名称*/
	@Excel(name = "会员名称", width = 15)
    @ApiModelProperty(value = "会员名称")
    private String name;
	/**购买金额*/
	@Excel(name = "购买金额", width = 15)
    @ApiModelProperty(value = "购买金额")
    private BigDecimal money;
	/**有效时间*/
	@Excel(name = "有效时间", width = 15)
    @ApiModelProperty(value = "有效时间")
    private Integer validDate;
	/**是否为永久会员(0-否 1-是)*/
	@Dict(dicCode = "Mer_Jerking_isGood")
	@Excel(name = "是否为永久会员", width = 15)
    @ApiModelProperty(value = "是否为永久会员")
    private Integer isForever;
	/**是否购买,1=购买,0=不购买*/
	@Excel(name = "是否购买,1=购买,0=不购买", width = 15)
    @Dict(dicCode = "Mer_Jerking_isGood")
    @ApiModelProperty(value = "是否购买,1=购买,0=不购买")
    private Integer isPay;
	/**是否显示 1=显示,0=隐藏*/
	@Excel(name = "是否显示 1=显示,0=隐藏", width = 15)
    @Dict(dicCode = "Mer_Jerking_isGood")
    @ApiModelProperty(value = "是否显示 1=显示,0=隐藏")
    private Integer isShow;
	/**会员等级*/
	@Excel(name = "会员等级", width = 15)
    @ApiModelProperty(value = "会员等级")
    private Integer grade;
	/**享受折扣*/
	@Excel(name = "享受折扣", width = 15)
    @ApiModelProperty(value = "享受折扣")
    private BigDecimal discount;
	/**会员卡背景*/
	@Excel(name = "会员卡背景", width = 15)
    @ApiModelProperty(value = "会员卡背景")
    private String image;
	/**会员图标*/
	@Excel(name = "会员图标", width = 15)
    @ApiModelProperty(value = "会员图标")
    private String icon;
//	/**说明*/
//	@Excel(name = "说明", width = 15)
//    @ApiModelProperty(value = "说明")
//    private String explain;
	/**添加时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "添加时间")
    private Date createTime;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;
	/**是否删除.1=删除,0=未删除*/
	@Excel(name = "是否删除.1=删除,0=未删除", width = 15)
    @ApiModelProperty(value = "是否删除.1=删除,0=未删除")
    private Integer isDel;
    /**成长值*/
    @Excel(name = "成长值", width = 15)
    @ApiModelProperty(value = "成长值")
    private BigDecimal growthValue;

}
